import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsString } from 'class-validator';

export class LoginDto {
  @ApiProperty({ example: 'user1', description: '用户名' })
  @IsString()
  @IsNotEmpty()
  username: string;

  @ApiProperty({ example: 'password123', description: '密码' })
  @IsString()
  @IsNotEmpty()
  password: string;

  @ApiProperty({ example: '123456', description: '验证码' })
  @IsString()
  @IsNotEmpty()
  captcha: string;

  // @ApiProperty({ example: '123456', description: '验证码唯一id' })
  // @IsString()
  // @IsNotEmpty()
  // captchaId: string | number;
} 